const enum Direction {
    up = 'UP',
    down = 'DOwn',
    right = 'Right',
    left = 'Left'
}
const value = 'UP' 
if (value === Direction.up) {
    console.log(value)
}